When developing an XPages Custom Control you may encounter the issue:
Error while executing JavaScript action expression
'compositeData' not found
If your custom control contains only a single control that is one of these tags:
xp:viewColumn, xp:column, xp:eventHandler, xp:selectItem, xp:selectItems
then the compositeData is not available in "Compute Dynamically" bindings,
only in "Compute on Page Load" bindings.
Normally when a custom control is inserted into an XPage, it leaves a panel-like control
in the control tree, the UIIncludeComposite. That panel provides functionality:
The controls listed above depend on their parent container tag,
and do not work a panel is inserted in the tree between that control and their parent.
For example, for xp:column if you have
<xp:dataTable>
<xp:panel>
<xp:column>
</xp:panel>
<xp:dataTable>
then the dataTable does not find the column in its direct children,
so the column would not be output as part of the dataTable.